package com.zust.data.util;

import java.util.regex.Pattern;

public class RegexUtil {

    public static final String regex_number = "^[0-9]*$";
    public static final String regex_digit_ = "^[0-9]*$";
    public static final String regex_email2 = "^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$";
    public static final String regex_email = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";
    public static final String regex_phone = "^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$";


    public static final Pattern emailPattern = Pattern.compile("\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*");
    public static final Pattern emailPatternFull = Pattern.compile("^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$");
    public static final Pattern phonePattern = Pattern.compile("(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|17[0|8]|18[0|1|2|3|5|6|7|8|9])\\d{8}");
    public static final Pattern phonePatternFull = Pattern.compile("^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|17[0|8]|18[0|1|2|3|5|6|7|8|9])\\d{8}$");

}
